import request from '@/utils/request'

// 查询上线认证列表
export function listAuthtask(query) {
  return request({
    url: '/supply/authtask/list',
    method: 'get',
    params: query
  })
}

// 查询上线认证详细
export function getAuthtask(id) {
  return request({
    url: '/supply/authtask/' + id,
    method: 'get'
  })
}

// 新增上线认证
export function addAuthtask(data) {
  return request({
    url: '/supply/authtask',
    method: 'post',
    data: data
  })
}

// 修改上线认证
export function updateAuthtask(data) {
  return request({
    url: '/supply/authtask',
    method: 'put',
    data: data
  })
}

// 删除上线认证
export function delAuthtask(id) {
  return request({
    url: '/supply/authtask/' + id,
    method: 'delete'
  })
}
